package com.doit.demo06;

import java.io.*;
import java.util.Properties;

public class test_properties {
    public static void main(String[] args) throws IOException {
        Properties p = new Properties();
        p.setProperty("name","赵露思");
        p.setProperty("age","23");
//        Reader r = new FileReader("D:\\IdeaProjects\\doit26\\day20\\aaa\\person.properties");
//        p.load(r);
//        r.close();

        Writer fw = new FileWriter("D:\\IdeaProjects\\doit26\\day20\\aaa\\person.properties");
        p.store(fw,"名字");
        fw.close();
        System.out.println(p);
    }
}
